package com.lxmes.sales.mapper;

import java.util.List;
import com.lxmes.sales.domain.NcProcessingPreSchedulingPlan;

/**
 * 加工预排产计划Mapper接口
 * 
 * @author lx
 * @date 2023-04-11
 */
public interface NcProcessingPreSchedulingPlanMapper 
{
    /**
     * 查询加工预排产计划
     * 
     * @param id 加工预排产计划主键
     * @return 加工预排产计划
     */
    public NcProcessingPreSchedulingPlan selectNcProcessingPreSchedulingPlanById(Long id);

    /**
     * 查询加工预排产计划列表
     * 
     * @param ncProcessingPreSchedulingPlan 加工预排产计划
     * @return 加工预排产计划集合
     */
    public List<NcProcessingPreSchedulingPlan> selectNcProcessingPreSchedulingPlanList(NcProcessingPreSchedulingPlan ncProcessingPreSchedulingPlan);

    /**
     * 新增加工预排产计划
     * 
     * @param ncProcessingPreSchedulingPlan 加工预排产计划
     * @return 结果
     */
    public int insertNcProcessingPreSchedulingPlan(NcProcessingPreSchedulingPlan ncProcessingPreSchedulingPlan);

    /**
     * 修改加工预排产计划
     * 
     * @param ncProcessingPreSchedulingPlan 加工预排产计划
     * @return 结果
     */
    public int updateNcProcessingPreSchedulingPlan(NcProcessingPreSchedulingPlan ncProcessingPreSchedulingPlan);

    /**
     * 删除加工预排产计划
     * 
     * @param id 加工预排产计划主键
     * @return 结果
     */
    public int deleteNcProcessingPreSchedulingPlanById(Long id);

    /**
     * 批量删除加工预排产计划
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteNcProcessingPreSchedulingPlanByIds(Long[] ids);

    String getPcMainCode(String date);
}
